﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using BUSINESS_OBJECT;
namespace CRM
{
    public partial class search : System.Web.UI.Page
    {
        Custcls cust = new Custcls();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["s"] != null)
            {
                DataTable dt = cust.GetRecords(-99, "%" + Request["s"].ToString() + "%", "", "", "", -99, "",Convert.ToDateTime("1/1/1800"), -99,"", "", "", "","","",false, " and ");

                GridView1.DataSource = dt;
                GridView1.DataBind();
            }       
        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
